﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Resto.CostControl.Core.Models.SysSettings
{
    /// <summary>
    /// 权限实体类
    /// </summary>
    public class Privilege : BaseModel
    {
        public string Id { get; set; }

        [Display(Name = "权限标识")]
        public string PrivilegeCode { get; set; }

        [Display(Name = "权限名称")]
        public string PrivilegeName { get; set; }

        /// <summary>
        /// 权限类型，分为菜单权限和普通权限
        /// </summary>
        [Display(Name = "权限类型")]
        public string PrivilegeType { get; set; }

        [Display(Name = "备注")]
        public string Remark { get; set; }

        [Display(Name = "父权限Id")]
        public string ParentId { get; set; }

        [Display(Name = "父权限标识")]
        public string ParentCode { get; set; }

        [Display(Name = "父权限名称")]
        public string ParentName { get; set; }

        /// <summary>
        /// 全路径，包含自己节点，用逗号隔开。
        /// </summary>
        [Display(Name = "全路径")]
        public string FullPath { get; set; }

        /// <summary>
        /// 菜单权限对应的链接地址
        /// </summary>
        [Display(Name = "资源")]
        public string Uri { get; set; }

        [Display(Name = "排序号")]
        public int SeqNo { get; set; }
    }
}
